import {
  FrontPageParams,
  StandardizePageParams,
  StdPageParams,
  StdPageResult,
} from '/@/api/model/baseModel';
import { defHttp } from '/@/utils/http/axios';
import { User } from '/@/api/monitor/entity/entity';

export function listUsers(params: FrontPageParams | StdPageParams) {
  return defHttp.get<StdPageResult<User>>({
    url: '/user/users',
    params: StandardizePageParams(params),
  });
}
